/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __CHAR_RACES_DBC_H__
#define __CHAR_RACES_DBC_H__

#include "WOWDbcFile.h"

namespace GNgine
{
	class ChrRacesDbc
	{
	public:
		typedef std::map<std::string,ChrRacesRecord*> RecordList;
		static const std::string PATH;
	protected:
		ChrRacesDbc();
	public:
		static ChrRacesDbc& getSingleton();
		ChrRacesRecord* getRecord(std::string name);
		int getRecordCount(Ogre::uint race, Ogre::uint gender, Ogre::uint type, Ogre::uint section, Ogre::uint npc);
	private:
		WOWDbcFile* _dbc;
		RecordList _records;

	};

}

#define GNgChrRacesDbc GNgine::ChrRacesDbc::getSingleton()

#endif
